<?php
if (isset($_SESSION['userid'])):
	$user = new User($_SESSION['userid']);
endif;
?>

<form method="post" action="index.php?page=contact&function=send">
	<input type="text" name="mailfrom" value="<?php if (isset($_SESSION['userid'])): echo $user->usermail; endif; ?>"/>
	<select name="mailto">
		<option value="resp.jeune@badaspttstrasbourg.fr">Responsable Jeune</option>
		<option value="president@badaspttstrasbourg.fr">Pr&eacute;sident</option>
		<option value="secretaire@badaspttstrasbourg.fr">Secr&eacute;taire</option>
		<option value="tresorier@badaspttstrasbourg.fr">Tresorier</option>
		<option value="admin@badaspttstrasbourg.fr">Webmaster</option>
		<option value="resp.compet@badaspttstrasbourg.fr">Responsable de Comp&eacute;tition</option>
		<option value="inscritpion@badaspttstrasbourg.fr">Responsable des inscriptions</option>
	</select>
	<input name="mailsubject" type="text" value="[Mail - badaspttstrasbourg.fr]" readonly="readonly" />
	<textarea name="mailcontent" rows="10" cols="50"></textarea>
	<input type="submit" value="Envoyer!"/>
</form>